package com.entrogy.service;

import com.entrogy.bean.PositionEntity;
import com.entrogy.bean.TeacherBasicInfoEntity;

import java.util.List;

/**
 * @ClassName PositionService
 * @Description
 * @Author luoxingjiang
 * @Date 2019/9/20 0020 下午 5:16
 * @Version 1.0
 **/
public interface PositionService {

    Integer getIdByStaticPositionId(Integer staticPositionId, Integer schoolCode);

    TeacherBasicInfoEntity getClassLeader(Integer classId, Integer schoolCode);

    TeacherBasicInfoEntity getGradeLeader(Integer gradeId, Integer schoolCode);

    boolean checkPosition(String teacherId, Integer positionId);

    List<Integer> listPositionId(String teacherId);

    List<PositionEntity> listTeacherPosition(String teacherId);

    boolean isNotPosition(String uid, List<Integer> positionIds);

    boolean InsertUserPositionInfos(String teacherId, List<PositionEntity> positionList);

    PositionEntity getPositionByPid(Integer schoolCode, int pId);
}
